<?php
use yii\helpers\Url;

?>


<form action="<?php echo Url::toRoute('demo/adddo'); ?>" method="post">
    <center>
        <h2>用户注册页面</h2>
        用户名:<input type="text" name="user_name"><br>
        密码:<input type="password" name="user_pwd"><br>
        确认密码:<input type="password" name="user_repwd"><br>
        <input type="hidden" name="_csrf" value="<?php echo Yii::$app->request->csrfToken ?>">
        <input type="submit" value="注册">

    </center>
</form>
